package com.yiguantong.police.retrofit;


import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Url;

/**
 * Created by qiuxiaolong on 2017/04/20.
 */
public interface APIService {

    //账号密码登录
    @FormUrlEncoded
    @POST("/loginInfo/validateLogin")
    Observable<ResponseBody> validateLogin(@Body RequestBody body);

    //测试登录 get请求
    @GET
    Observable<ResponseBody> testLogin(@Url String url);

}
